for p in range(10):
    a=1
    while 1:
        b=a*p
        c=b*p
        d=44-c
        m=d-c
        n=c-b
        if m==n:
            print a,b,c,d,p
            break
        else:
            a=a+1
            if a>=20:
                break